package chainOfResponsibility;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Manager extends Handler{
    private String name;
    @Override
    void handleHoliday(HolidayRequest holidayRequest) {
        if (holidayRequest.getCount()<=30){
            System.out.println(name+"总经理进行了审批");
        }else {
            System.out.println("不能请假超过30天");
        }
    }
}
